<?php 
	defined('IN_ADMIN') or exit('No permission resources.');
	include $this->admin_tpl('header', 'admin');
?>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>formvalidator.js" charset="UTF-8"></script>
<script language="javascript" type="text/javascript" src="<?php echo JS_PATH?>formvalidatorregex.js" charset="UTF-8"></script>
<script type="text/javascript">
<!--
$(function(){
	$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
	$("#taskname").formValidator({onshow:"任务名称不能为空",onfocus:"任务名称不能为空"}).inputValidator({min:1,max:999,onerror:"任务名称不能为空"});
	$("#tasktime").formValidator({onshow:"任务时间不能为空",onfocus:"任务时间不能为空"}).inputValidator({min:1,max:999,onerror:"必须为整数"}).regexValidator({regexp:"^(([1-9]{1}\\d*)|([0]{1}))?$",onerror:"必须为整数"});
});
//-->
</script>
<div class="pad-10">
  <div class="common-form">
   <form name="myform" action="?m=tasks&c=tasks&a=add" method="post" id="myform">
      <fieldset>
      <legend>添加计划任务</legend>
      <div class="bk15"></div>
      <table cellpadding="0" cellspacing="0" class="table_form" width="100%">
        <tr>
          <th width="80"><strong>任务类型</strong></th>
          <td><select name="info[tasktype]" style="width:100px;">
              <?php echo utility::option(tasktypes());?>
            </select></td>
        </tr>
        <tr>
          <th width="80"><strong>任务名称</strong></th>
          <td><input type="text" name="info[taskname]" size="20"  class="input-text" id="taskname"></td>
        </tr>
        <tr>
          <th><strong>间隔时间</strong></th>
          <td><input type="text"  name="info[tasktime]" size="20" class="input-text" id="tasktime"></td>
        </tr>
        <tr>
          <th><strong>任务备注</strong></th>
          <td valign="middle"><textarea name="info[info]" cols="40" rows="5" id="taskinfo"></textarea></td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="submit" value=" 确定 " name="dosubmit"> <input type="reset" value=" 清除 " name="reset"></td>
        </tr>
      </table>
       </form>
      </fieldset>
      <div class="bk15"></div>
   
  </div>
</div>
</body></html>